Optimal. Leaf size=371 \[ \frac{a^{2/3} \sin \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}+\frac{(-1)^{2/3} a^{2/3} \sin \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{CosIntegral}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \sin \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{CosIntegral}\left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}-\frac{(-1)^{2/3} a^{2/3} \cos \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Si}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 b^{5/3}}+\frac{a^{2/3} \cos \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \cos \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (x d+\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}+\frac{\sin (c+d x)}{b d^2}-\frac{x \cos (c+d x)}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.91509, antiderivative size = 371, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {3345, 3296, 2637, 3303, 3299, 3302} \[ \frac{a^{2/3} \sin \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{CosIntegral}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}+\frac{(-1)^{2/3} a^{2/3} \sin \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{CosIntegral}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \sin \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{CosIntegral}\left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}-\frac{(-1)^{2/3} a^{2/3} \cos \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}+c\right ) \text{Si}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 b^{5/3}}+\frac{a^{2/3} \cos \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (x d+\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \cos \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (x d+\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}+\frac{\sin (c+d x)}{b d^2}-\frac{x \cos (c+d x)}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3345
Rule 3296
Rule 2637
Rule 3303
Rule 3299
Rule 3302
Rubi steps
\begin{align*} \int \frac{x^4 \sin (c+d x)}{a+b x^3} \, dx &=\int \left (\frac{x \sin (c+d x)}{b}-\frac{a x \sin (c+d x)}{b \left (a+b x^3\right )}\right ) \, dx\\ &=\frac{\int x \sin (c+d x) \, dx}{b}-\frac{a \int \frac{x \sin (c+d x)}{a+b x^3} \, dx}{b}\\ &=-\frac{x \cos (c+d x)}{b d}-\frac{a \int \left (-\frac{\sin (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}-\frac{(-1)^{2/3} \sin (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x\right )}+\frac{\sqrt [3]{-1} \sin (c+d x)}{3 \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x\right )}\right ) \, dx}{b}+\frac{\int \cos (c+d x) \, dx}{b d}\\ &=-\frac{x \cos (c+d x)}{b d}+\frac{\sin (c+d x)}{b d^2}+\frac{a^{2/3} \int \frac{\sin (c+d x)}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{4/3}}-\frac{\left (\sqrt [3]{-1} a^{2/3}\right ) \int \frac{\sin (c+d x)}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}+\frac{\left ((-1)^{2/3} a^{2/3}\right ) \int \frac{\sin (c+d x)}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}\\ &=-\frac{x \cos (c+d x)}{b d}+\frac{\sin (c+d x)}{b d^2}+\frac{\left (a^{2/3} \cos \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sin \left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{4/3}}+\frac{\left (\sqrt [3]{-1} a^{2/3} \cos \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sin \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}+\frac{\left ((-1)^{2/3} a^{2/3} \cos \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\sin \left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}+\frac{\left (a^{2/3} \sin \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cos \left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{3 b^{4/3}}-\frac{\left (\sqrt [3]{-1} a^{2/3} \sin \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cos \left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{\sqrt [3]{a}+(-1)^{2/3} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}+\frac{\left ((-1)^{2/3} a^{2/3} \sin \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )\right ) \int \frac{\cos \left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{\sqrt [3]{a}-\sqrt [3]{-1} \sqrt [3]{b} x} \, dx}{3 b^{4/3}}\\ &=-\frac{x \cos (c+d x)}{b d}+\frac{a^{2/3} \text{Ci}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right ) \sin \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}+\frac{(-1)^{2/3} a^{2/3} \text{Ci}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right ) \sin \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \text{Ci}\left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right ) \sin \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right )}{3 b^{5/3}}+\frac{\sin (c+d x)}{b d^2}-\frac{(-1)^{2/3} a^{2/3} \cos \left (c+\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (\frac{\sqrt [3]{-1} \sqrt [3]{a} d}{\sqrt [3]{b}}-d x\right )}{3 b^{5/3}}+\frac{a^{2/3} \cos \left (c-\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (\frac{\sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}-\frac{\sqrt [3]{-1} a^{2/3} \cos \left (c-\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}\right ) \text{Si}\left (\frac{(-1)^{2/3} \sqrt [3]{a} d}{\sqrt [3]{b}}+d x\right )}{3 b^{5/3}}\\ \end{align*}
Mathematica [C] time = 0.527392, size = 231, normalized size = 0.62 \[ \frac{-i a d^2 \text{RootSum}\left [\text{$\#$1}^3 b+a\& ,\frac{-i \sin (\text{$\#$1} d+c) \text{CosIntegral}(d (x-\text{$\#$1}))+\cos (\text{$\#$1} d+c) \text{CosIntegral}(d (x-\text{$\#$1}))-\sin (\text{$\#$1} d+c) \text{Si}(d (x-\text{$\#$1}))-i \cos (\text{$\#$1} d+c) \text{Si}(d (x-\text{$\#$1}))}{\text{$\#$1}}\& \right ]+i a d^2 \text{RootSum}\left [\text{$\#$1}^3 b+a\& ,\frac{i \sin (\text{$\#$1} d+c) \text{CosIntegral}(d (x-\text{$\#$1}))+\cos (\text{$\#$1} d+c) \text{CosIntegral}(d (x-\text{$\#$1}))-\sin (\text{$\#$1} d+c) \text{Si}(d (x-\text{$\#$1}))+i \cos (\text{$\#$1} d+c) \text{Si}(d (x-\text{$\#$1}))}{\text{$\#$1}}\& \right ]+6 b (\sin (c+d x)-d x \cos (c+d x))}{6 b^2 d^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.026, size = 559, normalized size = 1.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 2.41593, size = 1030, normalized size = 2.78 \begin{align*} \frac{\left (\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\left (\sqrt{3} + i\right )}{\rm Ei}\left (-i \, d x + \frac{1}{2} \, \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (-i \, \sqrt{3} - 1\right )}\right ) e^{\left (\frac{1}{2} \, \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (i \, \sqrt{3} + 1\right )} - i \, c\right )} - \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\left (\sqrt{3} + i\right )}{\rm Ei}\left (i \, d x + \frac{1}{2} \, \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (-i \, \sqrt{3} - 1\right )}\right ) e^{\left (\frac{1}{2} \, \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (i \, \sqrt{3} + 1\right )} + i \, c\right )} - \left (\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\left (\sqrt{3} - i\right )}{\rm Ei}\left (-i \, d x + \frac{1}{2} \, \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (i \, \sqrt{3} - 1\right )}\right ) e^{\left (\frac{1}{2} \, \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (-i \, \sqrt{3} + 1\right )} - i \, c\right )} + \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\left (\sqrt{3} - i\right )}{\rm Ei}\left (i \, d x + \frac{1}{2} \, \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (i \, \sqrt{3} - 1\right )}\right ) e^{\left (\frac{1}{2} \, \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}{\left (-i \, \sqrt{3} + 1\right )} + i \, c\right )} - 12 \, d x \cos \left (d x + c\right ) + 2 i \, \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\rm Ei}\left (i \, d x + \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}\right ) e^{\left (i \, c - \left (-\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}\right )} - 2 i \, \left (\frac{i \, a d^{3}}{b}\right )^{\frac{2}{3}}{\rm Ei}\left (-i \, d x + \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}\right ) e^{\left (-i \, c - \left (\frac{i \, a d^{3}}{b}\right )^{\frac{1}{3}}\right )} + 12 \, \sin \left (d x + c\right )}{12 \, b d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{4} \sin \left (d x + c\right )}{b x^{3} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]